package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController //该注解为组合注解，等同于Spring中的@Controller+@ResponseBody注解
public class HelloController {

    @GetMapping("/hello") //该注解等同于Spring中的@RequestMapping（RequestMethod. GET)
    public String hello(){
        return "Hello SpringBoot,这是一次热部署。";
    }
}
